package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingGrade;
import com.zzyl.vo.NursingGradeVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @param
 * @return
 */
@Mapper
public interface NursingGradeMapper {

    //查询所有护理等级
    List<NursingGradeVo> selectAllNursingGrade();

    //新增护理等级
    void insertNursingGrade(NursingGrade nursingGrade);

    //分页条件查询
    Page<NursingGradeVo> selectByPage(String name, Integer status);

    //查询回显
    NursingGrade selectById(Long id);

    //修改
    void updateNursingGrade(NursingGrade nursingGrade);

    //删除
    void deleteNursingPlan(Long id);

    //启用/禁用
    void idStatusNursigGrade(Long id, Integer status);
}
